<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>权限设置</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script type="text/javascript" src="/layui/layui.js"></script>
    <link rel="stylesheet" href="/css/goods/goods-table.css">
</head>
<body style="background: #F1F1F1;">
    <form class="layui-form" action="" style="margin-left:2%;margin-right:2%">
        <div class="layui-form-item" style="margin-top:30px;">
            <label class="layui-form-label" style="background:#FBFBFB;width:56px;align:center;padding: 9px 26px;">角色名</label>
            <div class="layui-input-block">
                <input type="hidden" id="userId"/>
                <input type="text" id="trueName" required  lay-verify="required" autocomplete="off" class="layui-input" placeholder="请输入部门名称" disabled = disabled/>
            </div>
        </div>
        <div class="layui-form-item" style="margin-top:30px;">
            <div style="background:#FBFBFB;align:center;padding: 9px 26px;">拥有权限</div>
            <div style="background:#FEFEFE;height:60px;">
                <div class="layui-input-block" style="line-height:60px;margin-left:28px" id="sss">
                    <a href="javascript:updateGrade(1)" style="margin-right: 20px">管理：<input id="guan" class="layui-input swi layui-bg-cyan" type="checkbox" name="enable" lay-skin="switch" lay-filter="switchTest" value="管理"></a>
                    <a href="javascript:updateGrade(2)" style="margin-right: 20px">教师：<input id="teacher" class="layui-input swi layui-bg-cyan" type="checkbox" name="enable" lay-skin="switch" lay-filter="switchTest" value="教师"></a>
                    <a href="javascript:updateGrade(3)" style="margin-right: 20px">销售：<input id="shop" class="layui-input swi layui-bg-cyan" type="checkbox" name="enable" lay-skin="switch" lay-filter="switchTest" value="销售"></a>
                    <a href="javascript:updateGrade(4)" style="margin-right: 20px">人员：<input id="people" class="layui-input swi layui-bg-cyan" type="checkbox" name="enable" lay-skin="switch" lay-filter="switchTest" value="人员"></a>
                </div>
            </div>
        </div>
        <div class="layui-form-item" style="margin-top:30px;">
            <div style="background:#FBFBFB;align:center;padding: 9px 26px;">用户描述:</div>
            <div style="background:#FEFEFE;height:100px;">
                <textarea class="layui-textarea" style="width:100%;margin-left:0px" id="remark" disabled = disabled placeholder="这个用户很懒，什么都没留下..."></textarea>
            </div>
        </div>
        <div class="layui-form-item" style="margin-top:30px; margin-left:40%;">
            <button type="button" class="layui-btn" style="background-color: #2F4056;" onclick="wanCheng()">完成</button>
        </div>
    </form>
</body>
<script src="/js/newquan/newquan-user-power.js"></script>
</html>